package com.starry.module.system.core.code.enums;

import lombok.Getter;

/**
 * 序号生成枚举
 *
 * @author xiaoke
 */
@Getter
public enum CodeSeqType {

    /**
     * 时间戳
     */
    TIMESTAMP(0, "时间戳"),
    /**
     * 随机数
     */
    RANDOM(1, "随机数"),
    /**
     * 自增
     */
    AUTO(1, "自增");

    private final Integer code;
    private final String msg;


    CodeSeqType(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
